package arrays;

import java.util.Arrays;

public class Demo1 {
    public static void main(String[] args) {
        int[] arr = {1,3,4,5,2};
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.binarySearch(arr, 4));
        System.out.println(Arrays.toString(Arrays.copyOf(arr, 3)));
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
        Arrays.fill(arr,100);
        System.out.println(Arrays.toString(arr));


    }
}
